package com.varian.system.vo;

import com.varian.tool.model.BaseVO;
import com.varian.tool.model.ExecuteType;
import com.varian.tool.model.TaskStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author ben
 * @since 2024/12/27
 */
@Data
@Schema(title = "任务视图对象")
public class SysTaskVO extends BaseVO {
    @Schema(title = "任务编码")
    private String taskCode;
    @Schema(title = "任务名称")
    private String taskName;
    @Schema(title = "0:立即执行 1:计划执行")
    private ExecuteType executeType;
    @Schema(title = "计划时间")
    private LocalDateTime scheduleTime;
    @Schema(title = "执行时间")
    private LocalDateTime executeTime;
    @Schema(title = "任务参数")
    private Object taskParam;
    @Schema(title = "阻塞策略 0:无限制 N:并行数量")
    private Integer executeBlockStrategy;
    @Schema(title = "任务状态 0:未执行 1:执行中 2:已完成 3:失败")
    private TaskStatus taskStatus;
    @Schema(title = "错误信息")
    private String errorMessage;
}
